package com.xian.tszs.meal.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

@Entity
@Table(name = "ts_goods")
public class TsGoods implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	@Id
	private String id; //商品表
	
	private String name;  //商品名称
	
	@Column(name = "`explain`")
	private String explain;//商品简介
	
	private Integer state; //商品状态 1上架  2下架 
	
	private String specificationName;//规格名称
	
	private String specification;//商品规格 大份小份
	
	private String typeMax;  //商品大类
	
	private Double price;	//市场价
	
	private Double vipPrice;//会员价
	
	private String maxPic;  //商品大图
	
	private String businessId;  //所属商家
	
	private Integer collectionVolume=0; //收藏量
	
	private Integer browseVolume=0;	//浏览量
	
	private Integer salesVolume=0;	//销售量
	
	@DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private Date createTime;
	
	private String creatorId;
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date modifyTime;
	
	private String modifierId;
	
	private Integer status=0;
	
	private String creator;
	
	private String modifier;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
;
	public String getTypeMax() {
		return typeMax;
	}

	public void setTypeMax(String typeMax) {
		this.typeMax = typeMax;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Double getVipPrice() {
		return vipPrice;
	}

	public void setVipPrice(Double vipPrice) {
		this.vipPrice = vipPrice;
	}

	public String getMaxPic() {
		return maxPic;
	}

	public void setMaxPic(String maxPic) {
		this.maxPic = maxPic;
	}

	public String getBusinessId() {
		return businessId;
	}

	public void setBusinessId(String businessId) {
		this.businessId = businessId;
	}

	public Integer getCollectionVolume() {
		return collectionVolume;
	}

	public void setCollectionVolume(Integer collectionVolume) {
		this.collectionVolume = collectionVolume;
	}

	public Integer getBrowseVolume() {
		return browseVolume;
	}

	public void setBrowseVolume(Integer browseVolume) {
		this.browseVolume = browseVolume;
	}

	public Integer getSalesVolume() {
		return salesVolume;
	}

	public void setSalesVolume(Integer salesVolume) {
		this.salesVolume = salesVolume;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getCreatorId() {
		return creatorId;
	}

	public void setCreatorId(String creatorId) {
		this.creatorId = creatorId;
	}

	public Date getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}

	public String getModifierId() {
		return modifierId;
	}

	public void setModifierId(String modifierId) {
		this.modifierId = modifierId;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public String getModifier() {
		return modifier;
	}

	public void setModifier(String modifier) {
		this.modifier = modifier;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public String getExplain() {
		return explain;
	}

	public void setExplain(String explain) {
		this.explain = explain;
	}

	public String getSpecification() {
		return specification;
	}

	public void setSpecification(String specification) {
		this.specification = specification;
	}

	public String getSpecificationName() {
		return specificationName;
	}

	public void setSpecificationName(String specificationName) {
		this.specificationName = specificationName;
	}

}
